<%@ page contentType="text/html;charset=utf-8" language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<html:html>
<head>
		<META http-equiv=Content-Type content="text/html; charset=utf-8">
		<LINK href="../styles/stylewang.css"  type=text/css rel=stylesheet>
		<LINK href="styles/stylewang.css"  type=text/css rel=stylesheet>
		<LINK href="xtree.css"  type=text/css rel=stylesheet>
		<style type="text/css"></style>
		<title>CGProject</title>
		<html:base/>
</head>
<script language="javaScript" src="../../js/calendar.js"></script>
<%String id = (String)request.getAttribute("ID");%>
<%String chi_id = (String)request.getAttribute("ChildID");%>


<script language="javascript" src="calendar.js"></script>
<body>
<table border="0" width="100%" cellspacing="0" id="table6">
	<tr>
		<td colspan="5" width="85%" id="onlybt">&nbsp;
		<b><bean:message key="elementgroup"/>&nbsp;<font color="#990000"><bean:write name="egp" property="elementGroupName"/></font>&nbsp;<bean:message key="elementgroup.information"/></b>

		</td>
	</tr>
	<logic:equal name="egps_empty" value="false"><tr>
		<td width="17%" id="btleftbian">
		<b>&nbsp; <bean:message key="elementgroup.subgroup"/></b></td>		
		<td width="53%" colspan="4" id="btrightbian">&nbsp;
		<b><font face="Verdana">&nbsp; </font></b></td>		
	</tr></logic:equal>
	<logic:equal name="egps_empty" value="true"><tr>
		<td width="17%"colspan="5" id="rightcenter">
		&nbsp;<font color="#990000"><bean:message key="elementgroup.nosubgroup"/></font></td>		
	</tr></logic:equal>

	<logic:iterate id="element" name="egps">

	<logic:equal name="element" property="elementGroupId" value="<%=chi_id%>">
	
	<html:form action="/modEGroup">
	<html:hidden property="id"/>
	<tr>
		<td width="17%" id="leftcenter">
		&nbsp;<html:text property="groupName"/></td>		
		<td width="53%" colspan="4" id="rightcenter">
		<html:submit><bean:message key="submit"/>
		</html:submit></td>		
	</tr>
	</html:form>
	</logic:equal>
	
	<logic:notEqual name="element" property="elementGroupId" value="<%=chi_id%>">
	<tr>
		<td width="17%" id="leftcenter">
		&nbsp;&nbsp;<bean:write name="element" property="elementGroupName"/></td>		
		<td width="53%"colspan="4" id="rightcenter">
		<html:link page="/intoModEGroup.do" paramId="EGroupID" paramName="element" paramProperty="elementGroupId">[<bean:message key="basicmodify"/>]</html:link>&nbsp;&nbsp;
		<a href="../del.do?FatherId=<%=id%> &Type=Elementgroup&Id=<bean:write name="element" property="elementGroupId"/>" onclick="return   confirm('ConfirmDelete')">[<bean:message key="delete"/>]</a></td>		
	</tr>
	</logic:notEqual>

	</logic:iterate>

	<logic:equal name="eles_empty" value="false"><tr>
		<td width="20%" id="leftcenter">
		<b>&nbsp; <bean:message key="element.name"/></b></td>
		<td width="20%" id="leftcenter">
		<b>&nbsp; <bean:message key="element.planstarttime"/></b></td>
		<td width="20%" id="leftcenter">
		<b>&nbsp; <bean:message key="element.planendtime"/></b></td>
		<td width="20%" id="leftcenter">
		<b>&nbsp; <bean:message key="element.description"/></b></td>

		
		<td width="20%" id="rightcenter">
		<b><font face="Verdana">&nbsp; </font></b></td>		
	</tr></logic:equal>
	<logic:equal name="eles_empty" value="true"><tr>
		<td width="17%" id="leftbottom">
		&nbsp;<font color="#990000"><bean:message key="elementgroup.noelement"/></font></td>		
		<td width="53%" id="rightbottom">
		　</td>		
	</tr></logic:equal>
	<logic:iterate id="element" name="eles">
	<tr>
		<td height="25" align="left" width="20%" >
		&nbsp;&nbsp;<bean:write name="element" property="elementName"/>
		<td height="25" align="left" width="20%" >
		&nbsp;&nbsp;<bean:write name="element" property="planStartTime"/>
		<td height="25" align="left" width="20%" >
		&nbsp;&nbsp;<bean:write name="element" property="planEndTime"/>
		<td height="25" align="left" width="20%" >
		&nbsp;&nbsp;<bean:write name="element" property="elementDescription"/></td>		
		<td height="25" align="left" width="20%" >
		&nbsp;<html:link page="/intoModElement.do" paramId="elementId" paramName="element" paramProperty="elementId">[<bean:message key="basicmodify"/>]</html:link>&nbsp;&nbsp;
		<a href="../del.do?FatherId=<%=id%> &Type=Element&Id=<bean:write name="element" property="elementId"/>" onclick="return   confirm('ConfirmDelete')">[<bean:message key="delete"/>]</a></td>		
	</tr>
	</logic:iterate>

	</table>




</body>
</html:html>
